package org.dralee.springsecurity.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author jackielee
 * @version 1.0
 * @description AdminController
 * @date 2021/3/29
 **/
@Controller
@RequestMapping("/admins")
public class AdminController {

    @RequestMapping("/")
    public String index(){
        return "admins/index";
    }

    @RequestMapping("/{id}")
    public String detail(int id){
        return "admins/detail";
    }
}
